package com.sun.entity;

import java.util.ArrayList;
import java.util.List;


public class Role{

    private String id;

    private String roleName;

    private String roleCode;

    private String comments;

    private String pid;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    private List<User> users = new ArrayList<>();

    private List<Perform> performs = new ArrayList<>();

    public List<Perform> getPerforms() {
        return performs;
    }

    public void setPerforms(List<Perform> performs) {
        this.performs = performs;
    }


    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments == null ? null : comments.trim();
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }
}